package com.utils
{
	import com.error.ArgumentValueErrorMe;

	public class NumeralUtilsMe
	{
		public static function NumberArray(start:Number,end:Number,equal:Number=1):Array
		{
			var a:Array = [];
			
			if(start<end)
			{
				for (var i:Number = start; i <= end; i+=equal) 
				{
					a.push(i);
				}
			}else
			{
				throw new ArgumentValueErrorMe;
			}
			return a;
		}
		
		public static function NumberStringArray(start:Number,end:Number,equal:Number=1):Array
		{
			var a:Array = [];
			
			if(start<end)
			{
				for (var i:Number = start; i <= end; i+=equal) 
				{
					a.push(String(i));
				}
			}else
			{
				throw new ArgumentValueErrorMe;
			}
			return a;
		}
	}
}